package server

import (
	"github.com/gin-gonic/gin"
	"NicePay/handler"
	"NicePay/middleware"
)

func regRoute(engine *gin.Engine) {
	//engine.StaticFile("/", "index.html")
	// http://example.com/api
	pay := engine.Use(middleware.CORSMiddleware) //
	pay.Any("/notify", handler.Notify)
	pay.Use(middleware.JWTVerify)
	pay.Any("/trade", handler.WsHandler)
}
